import axios from 'axios';

// 上传图片
export const upload = (data) =>
  axios.request({
    url: '/common/upload',
    method: 'post',
    data
  });

// 字典查询
export const queryDict = (data) =>
  axios.request({
    url: '/common/queryDict',
    method: 'get',
    params: data
  });

// 获取脑图
export const getBrainMap = (data) =>
  axios.request({
    url: '/api/v1/event/catalogue/mind/map',
    method: 'get',
    params: data
  });
